/*
 * @Descripttion: 
 * @version: 
 * @Author: TT
 * @Date: 2022-06-24 11:33:06
 * @LastEditors: TT
 * @LastEditTime: 2022-09-04 19:05:33
 */

import 'package:hzy_normal_widget/hzy_normal_widget.dart';

String configLanguageMessage(String str) {
  return str.tr;
}

class LanguageConfig {
  //=================== 通用 ===================//
  static const String mygeneral = 'mygeneral';

  /// 主题设置
  static const String mythemesetting = 'mythemesettings';

  /// 跟随系统
  static const String mythemesystem = 'mythemesystem';

  /// 开启后,将跟随系统打开或关闭深色模式
  static const String mythemesystemessage = 'mythemesystemessage';

  /// 手动选择
  static const String mythemeshoudong = 'mythemeshoudong';

  /// 普通模式
  static const String mythemenoraml = 'mythemenormal';

  /// 多语言
  static const String mylaunch = 'mylaunch';

  /// 已开启
  static const String opened = "opened";

  /// 未开启
  static const String notopen = "notopen";

  /// 简体中文
  static const String launchch = "launchCH";

  /// 英文
  static const String launchus = "launchUS";

  /// 确定
  static const String done = "done";

  /// 首页title
  static const String hometitle = "hometitle";

  /// 发布帖子
  static const String publish = "publish";

  /// 系统设置
  static const String systemsettings = "System settings";

  /// 退出登录
  static const String loginOut = "loginOut";

  /// 请
  static const String please = 'please';

  /// 登录
  static const String login = 'login';

  static const String solgleft = "solgleft";

  static const String solgright = "solgright";

  static const String passwordhint = "passwordhint";

  static const String nicknamehint = "nicknamehint";

  static const String account = "accoubt";

  static const String password = "password";

  static const String accounthint = "accounthint";

  static const String loginsuccess = "loginsuccess";

  static const String acceptbeginmsg = "acceptbeginmsg";

  static const String oneclikclogin = "oneclicklogin";

  static const String serviceagreement = "serviceagreement";

  static const String andstr = "andStr";

  static const String privacypolicy = "privacypolicy";

  static const String informationcollect = "informationcollect";

  static const String agreeagreement = "agreeagreement";

  static const String oneloginpopmsg = "oneloginpopmsg";

  static const String agree = "agree";

  static const String disagree = "disagree";
}

class LanguageInfoConfig extends Translations {
  @override
  Map<String, Map<String, String>> get keys => {
        "zh_CN": {
          LanguageConfig.mygeneral: "通用",
          LanguageConfig.mythemesetting: "深色模式",
          LanguageConfig.mythemesystem: "跟随系统",
          LanguageConfig.mythemesystemessage: "开启后,将跟随系统打开或关闭深色模式",
          LanguageConfig.mythemeshoudong: "手动选择",
          LanguageConfig.mythemenoraml: "普通模式",
          LanguageConfig.mylaunch: "多语言",
          LanguageConfig.opened: "已开启",
          LanguageConfig.notopen: "未开启",
          LanguageConfig.launchch: "简体中文",
          LanguageConfig.launchus: "English",
          LanguageConfig.done: "确定",
          LanguageConfig.hometitle: "撕裂",
          LanguageConfig.publish: "发布帖子",
          LanguageConfig.systemsettings: "系统设置",
          LanguageConfig.loginOut: "退出登录",
          LanguageConfig.please: "请",
          LanguageConfig.login: "登录",
          LanguageConfig.solgleft: "撕裂面具",
          LanguageConfig.solgright: "重启人生",
          LanguageConfig.passwordhint: "请填写密码",
          LanguageConfig.nicknamehint: "请填写昵称",
          LanguageConfig.account: "帐号",
          LanguageConfig.password: "密码",
          LanguageConfig.accounthint: "请填写帐号",
          LanguageConfig.loginsuccess: "欢迎来到 你的世界",
          LanguageConfig.acceptbeginmsg: "我已阅读并同意",
          LanguageConfig.oneclikclogin: "一键登录",
          LanguageConfig.serviceagreement: "用户服务协议",
          LanguageConfig.andstr: "和",
          LanguageConfig.privacypolicy: "隐私政策",
          LanguageConfig.informationcollect: "本页面收集的信息仅用于注册账号",
          LanguageConfig.agreeagreement: "请先同意协议才可以正常登录",
          LanguageConfig.oneloginpopmsg:
              "个人信息自动生成,如若修改,可在个人信息界面进行修改,\n 账号: 撕裂 \n 密码:111111 \n是否同意并登录",
          LanguageConfig.agree: "同意",
          LanguageConfig.disagree: "我不同意",
        },
        "en_US": {
          LanguageConfig.mygeneral: "General",
          LanguageConfig.mythemesetting: "Dark Mode",
          LanguageConfig.mythemesystem: "Automatic",
          LanguageConfig.mythemesystemessage:
              "When enabled,Us will switch dark mode on/off to match your system settings",
          LanguageConfig.mythemeshoudong: "Select manually",
          LanguageConfig.mythemenoraml: "Noraml Model",
          LanguageConfig.mylaunch: "Language",
          LanguageConfig.opened: "Opened",
          LanguageConfig.notopen: "Not Open",
          LanguageConfig.launchch: "简体中文",
          LanguageConfig.launchus: "English",
          LanguageConfig.done: "Done",
          LanguageConfig.hometitle: "Tearing",
          LanguageConfig.publish: "Publish",
          LanguageConfig.systemsettings: "System Settings",
          LanguageConfig.loginOut: "Log Out",
          LanguageConfig.please: "Please",
          LanguageConfig.login: "Login",
          LanguageConfig.solgleft: "Tear mask",
          LanguageConfig.solgright: "Restart life",
          LanguageConfig.passwordhint: "Enter password",
          LanguageConfig.nicknamehint: "Enter account",
          LanguageConfig.account: "Account",
          LanguageConfig.password: "Password",
          LanguageConfig.accounthint: "Enter account",
          LanguageConfig.loginsuccess: "welcome to your world!",
          LanguageConfig.acceptbeginmsg: "I have read and accept the",
          LanguageConfig.oneclikclogin: " One click login",
          LanguageConfig.serviceagreement: "User service agreement",
          LanguageConfig.andstr: "And",
          LanguageConfig.privacypolicy: "Privacy policy",
          LanguageConfig.informationcollect:
              "The information collected on this page is only for account registration",
          LanguageConfig.agreeagreement:
              "Please agree to the agreement before you can log in normally",
          LanguageConfig.oneloginpopmsg:
              "Personal information is automatically generated. If it is modified, it can be modified in the personal information interface. \n account: tear \n password: 111111 \n agree and log in",
          LanguageConfig.agree: "Agree",
          LanguageConfig.disagree: "I disagree",
        }
      };
}

class LauchNormalMsg {
  static String get hometitle =>
      configLanguageMessage(LanguageConfig.hometitle);

  /// 登录
  static String get login => configLanguageMessage(LanguageConfig.login);

  /// 请登录
  static String get pleaselogin =>
      configLanguageMessage(LanguageConfig.please) +
      configLanguageMessage(LanguageConfig.login);

  /// 账号
  static String get accout => configLanguageMessage(LanguageConfig.account);

  static String get accounthint =>
      configLanguageMessage(LanguageConfig.accounthint);

  /// 密码
  /// 退出登录
  static String get logout => configLanguageMessage(LanguageConfig.loginOut);

  ///  系统设置
  static String get system =>
      configLanguageMessage(LanguageConfig.systemsettings);

  /// 发布帖子
  static String get publish => configLanguageMessage(LanguageConfig.publish);

  /// 通用
  static String get general => configLanguageMessage(LanguageConfig.mygeneral);
  // static String  general = configLanguageMessage(LanguageConfig.mygeneral);

  static String get themesetting =>
      configLanguageMessage(LanguageConfig.mythemesetting);

  static String get themesystem =>
      configLanguageMessage(LanguageConfig.mythemesystem);

  static String get systemmessage =>
      configLanguageMessage(LanguageConfig.mythemesystemessage);

  static String get themeshoudong =>
      configLanguageMessage(LanguageConfig.mythemeshoudong);

  static String get themenormal =>
      configLanguageMessage(LanguageConfig.mythemenoraml);

  static String get launch => configLanguageMessage(LanguageConfig.mylaunch);

  static String get opened => configLanguageMessage(LanguageConfig.opened);

  static String get notopen => configLanguageMessage(LanguageConfig.notopen);

  static String get zhch => configLanguageMessage(LanguageConfig.launchch);

  static String get enus => configLanguageMessage(LanguageConfig.launchus);

  static String get done => configLanguageMessage(LanguageConfig.done);
}
